package com.ruoyi.common.enums;
/**
 * 返回码枚举
 * @author zhoudong
 *
 */
public enum RespEnum {
	/**
	 * 成功
	 */
	RESP_SUCCESS(0,200,"T","SUCCESS","成功","S0001","支付成功",true),
	/**
	 * 失败
	 */
	RESP_FAIL(1,500,"F","FAIL","失败","S0002","处理中",false),
	/**
	 * 错误
	 */
	RESP_ERROR(2,951,"E","ERROR","错误","E9999","处理错误",false);
	
	private int code;
	private int httpCode;
	private String enCode;
	private String msg;
	private String cnMsg;
	private String channelCode;
	private String channelMsg;
	private boolean booleanCode;
	/**
	 * @description: 构造
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	RespEnum(int code, int httpCode, String enCode, String msg, String cnMsg, String channelCode, String channelMsg, boolean booleanCode) {
		this.code = code;
		this.httpCode=httpCode;
		this.enCode=enCode;
		this.msg=msg;
		this.cnMsg=cnMsg;
		this.channelCode=channelCode;
		this.channelMsg=channelMsg;
		this.booleanCode = booleanCode;
	}
	/**
	 * @description: get
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	public int getCode() {
		return code;
	}
	/**
	 * @description: get
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	public int getHttpCode() {
		return httpCode;
	}
	/**
	 * @description: get
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	public String getEnCode() {
		return enCode;
	}
	/**
	 * @description: get
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	public String getMsg() {
		return msg;
	}
	/**
	 * @description: get
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	public String getCnMsg() {
		return cnMsg;
	}
	/**
	 * @description: get
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	public String getChannelCode() {
		return channelCode;
	}
	/**
	 * @description: get
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	public String getChannelMsg() {
		return channelMsg;
	}
	/**
	 * @description: get
	 * @author zhoudong
	 * @date 2020/9/7 14:14
	 */
	public boolean isBooleanCode() {
		return booleanCode;
	}
}
